<?php
function V_AdminList(&$arrayData){
	$ulr = "?".MODUL."=admin&".ACTION."=";//htmlspecialchars($_SERVER['QUERY_STRING']);
?>
				 <font size="2" color="#FF0000"> <?= CM_showMessage(); ?>
				  <?= CM_showError(); ?></font>
<?php
	$totalRows = 0;	
	$totalRows=count($arrayData);

?>
<style type="text/css">
<!--
.style3 {font-size: 12px; }
-->
</style>

<table width="100%" height="68">
  <tr><td align="center">
   <form name="frm" action="<?=$ulr?>List"  method="post" >
	<table width="100%" border="0" align="center">
	  <tr>
		<td width="100">&nbsp;</td>
		<td align="center"><SPAN class=bk12-140><font color="#FF0000">
		  <?=$totalRows?>
		  </font>&nbsp;Tài khoản</SPAN></td>
		<td width="100" align="right"><A class="thanh_link1" href="#" onClick="jvascript : window.history.go(-1);" >[<strong>Trở lại</strong>]</A></td>
	  </tr>
	</table>

      <DIV style="BORDER-RIGHT: #999999 1px solid; VERTICAL-ALIGN: top; OVERFLOW: auto; BORDER-LEFT: #999999 1px solid; WIDTH: 810px; BORDER-BOTTOM: #999999 1px solid; HEIGHT: 400px" align="center">
		<table width="810" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#FF9900" bordercolordark="white">
<!--DWLayoutTable-->
              <tr align="center" bgcolor="#FFE59F">
                <td width="26"  ><span class="style3"  style="color: #666666; font-weight: bold">STT</span></td>
                <!-- <TD width="25" align=middle><span style="color: #666666; font-weight: bold">編集</span></TD> -->
				<TD width="40"  ><span class="style3" style="color: #666666; font-weight: bold">Xóa</span></TD>
				<TD width="226" ><span class="style3" style="color: #666666; font-weight: bold">T&ecirc;n</span></TD>
				<TD width="205" ><span class="style3" style="color: #666666; font-weight: bold">T&ecirc;n &#272;&#259;ng Nhập</span></TD>
				<TD width="119" ><span class="style3" style="color: #666666; font-weight: bold">S&#7889; làn login </span></TD>
				<TD width="142" ><span class="style3" style="color: #666666; font-weight: bold">Ngày login </span></TD>
		  </tr>
	
 <?php
	 //============Trinh bay d? li?u===========================================================================
	if($totalRows>0)
	{
		$curRow=0;
		foreach($arrayData as $row){	
			$i++;
			$curRow ++;
  		    ?>           
			<tr>
				<TD class=bk12-140 bgcolor="#FFE59F" align="right"><strong>
			    <?=($curRow)?>
			    </strong></TD>
				 <!-- <TD align="center" bgcolor="#FFE59F">
					<A  href="<?=$ulr."Edit"?>&id=<? echo $row['id']; ?>&curPg=<?=$curPage?>" >
						<IMG    src="../images/Edit.gif"  border=0  /> 
					</A>
				</TD> -->
				<TD align="center" bgcolor="#FFE59F">
					<A onclick="return confirmDelete();"  href="<?=$ulr."Delete"?>&id=<? echo $row['id']; ?>&curPg=<?=$curPage?>">
						<IMG  src="../images/Delete.gif" border=0 > 
					</A>
			    </TD>
				<TD align="left" class=bk12-140><font size="2">
			    <?=$row['ho_ten']?>
				</font></TD>
				<TD align="left" class=bk12-140><font size="2">
			    <?=$row['ten_dang_nhap']?>
				</font></TD>
				<TD class=bk12-140  align="right"><font size="2">
			    <?=$row['so_lan_dang_nhap']?>
				</font></TD>
				<TD class=bk12-140  align="right"><font size="2">
			    <?= str_replace("-","/",$row['ngay_dang_nhap'])?>
				</font></TD>
		    </tr>
  			 <?php
		}  // end if
	}
	else{
	?>
		<tr valign="top">
		  <td height="23" align="middle" colspan="11"><div align="center"><b><font face="Arial" color="#FF0000">Không có tài khoản nào</font></b></div></td>
		 </tr>
	<?php
	}
	?>
</table>
</div>
		<table width="100%" border="0" align="center">
          <tr>
            <td width="100">&nbsp;</td>
            <td align="center"><span class=bk12-140>
              <font color="#FF0000">
              <?=$totalRows?>
              &nbsp;</font>Tài khoản</span></td>
            <td width="100" align="right"><a class="thanh_link1" href="#" onClick="jvascript : window.history.go(-1);" >[<strong>Trở lại</strong>]</a></td>
          </tr>
        </table>
</form>  		
	</td>
  </tr>
</table>
<?php
}
?>

